<?php
include_once( 'config.php' );
include_once( 'weibo/saetv2.ex.class.php' );

session_start();


$o = new SaeTOAuthV2( WB_AKEY , WB_SKEY );

$code_url = $o->getAuthorizeURL( WB_CALLBACK_URL );

$_SESSION['nexturl']=$_GET['nexturl'];


echo '<script type="text/javascript">alert("'.$_GET['nexturl'].'");location.href="'.$code_url.'";</script>';
?>
    
